class CreateUsers < ActiveRecord::Migration
  def change
    create_table :users do |t|
      t.string :name, null:false
      t.index :name, unique: true
      t.string :password_digest
      t.text :note
      t.timestamps null: false
    end
  end
end
